//
//  ViewController.m
//  UIDevice和UIScreen
//
//  Created by clz on 2019/9/15.
//  Copyright © 2019 clz. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    //UIDevice
    UIDevice *currentDevice = [UIDevice currentDevice];
    NSLog(@"%@",currentDevice.name);
    NSLog(@"%@",currentDevice.model);
    NSLog(@"%@",currentDevice.localizedModel);
    NSLog(@"%@",currentDevice.systemName);
    NSLog(@"%@",currentDevice.systemVersion);
    NSLog(@"%@",currentDevice.identifierForVendor);
    NSLog(@"%d",currentDevice.multitaskingSupported);
    NSLog(@"%ld",(long)currentDevice.userInterfaceIdiom);//设备交互界面类型
    
    //UIScreen
    UIScreen *screen =[UIScreen mainScreen];
    NSLog(@"修改屏幕亮度前 = %f",screen.brightness);
    screen.brightness = 1;
    NSLog(@"修改屏幕亮度后 = %f",screen.brightness);
    NSLog(@"屏幕宽度 = %f",screen.bounds.size.width);
    NSLog(@"屏幕高度 = %f",screen.bounds.size.height);
}


@end
